<div class="layuimini-container">
    <form id="app-form" class="layui-form layuimini-form">
        
        <div class="layui-form-item">
            <label class="layui-form-label">抢购场次名称</label>
            <div class="layui-input-block">
                <input type="text" name="name" class="layui-input" lay-verify="required" placeholder="请输入抢购场次名称" value="{$row.name|default=''}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">所属分仓</label>
            <div class="layui-input-block">
                <select name="bucket_id" lay-verify="" lay-search>
                    {foreach name="fencang" item="val"}
                    <option value="{$val.id}" {if condition="$row.bucket_id eq $val.id"}selected="" {/if} >{$val.bucket_name}</option>
                    {/foreach}
                </select>     
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">开始时间</label>
            <div class="layui-input-block">
                <input type="text" name="starttime" data-date="" data-date-type="time" class="layui-input"  placeholder="请选择开始时间" value="{$row.starttime|default=''}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">结束时间</label>
            <div class="layui-input-block">
                <input type="text" name="endtime" data-date="" data-date-type="time" class="layui-input"  placeholder="请选择结束时间" value="{$row.endtime|default=''}">
            </div>
        </div>
        
        <div class="layui-form-item">
            <label class="layui-form-label">状态</label>
            <div class="layui-input-block">
                <input type="radio" name="state" value="1" title="正常" {eq name="row.state" value="1"}checked=""{/eq} >
                <input type="radio" name="state" value="0" title="暂停" {eq name="row.state" value="0"}checked=""{/eq}>
            </div>
        </div>
      
        <div class="layui-form-item">
            <label class="layui-form-label">提示文字</label>
            <div class="layui-input-block">
                <input type="text" name="tip" class="layui-input" lay-verify="required" placeholder="请输入提示文字" value="{$row.tip|default=''}">
            </div>
        </div>
        
        <div class="hr-line"></div>
        <div class="layui-form-item text-center">
            <button type="submit" class="layui-btn layui-btn-normal layui-btn-sm" lay-submit>确认</button>
            <button type="reset" class="layui-btn layui-btn-primary layui-btn-sm">重置</button>
        </div>

    </form>
</div>